Hệ thống quản lý phòng khám trực tuyến bằng PHP

1 <?php
2 define(
'PREPEND_PATH','../');
3 include(
"../defaultLang.php"); //1
4 include(
"../language.php"); //2
5 include(
"../lib.php"); //3
6 //
this is the core file of the appGini
7 include_once(
"../header.php");
8 if
(isset($_REQUEST['dvprint_x']))
9     
return;
10 $word = $_REQUEST[
'search']; // 3shan 2t2d in intger bs acept
11 $patients_table = get_sql_from(
'patients');
12 $result = sql(
"select * from patients where history LIKE '%" . $word . "%' ", $e0);
13 ?>
14
15 <div
class="input-group">
16     <span
class="input-group-btn">
17         <a href=
"reports.php" class="btn btn-info hidden-print btn btn-secondary" role="button">Back to Reports</a>
18     </span>
19     <button
class="btn btn-primary hidden-print" type="button" id="sendToPrinter" onclick="window.print();"><i class="glyphicon glyphicon-print"></i> Print</button>
20 </div>
21
22
23
24
25
26 <div style=
"height: 90px"></div>
27 <?php
if(db_num_rows($result)){?>
28 <table
class="table table-striped table-bordered">
29     <thead>
30
31     <th
class="text-center" style="color:#0066ff ; font-size: 15px"> Name</th>
32     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Age</th>
33     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Home Phone</th>
34     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Work Phone</th>
35     <th
class="text-center" style="color:#0066ff ; font-size: 15px"> Image</th>
36     <th
class="text-center" style="color:#0066ff ; font-size: 15px"> Gender</th>
37     <th
class="text-center" style="color:#0066ff ; font-size: 15px">State</th>
38     <th
class="text-center" style="color:#0066ff ; font-size: 15px">History</th>
39 </thead>
40
41 <tbody>
42 <?php
while ($order = db_fetch_assoc($result)) { ?>
43         <tr>
44             <td
class="text-left"><a href="patients_view.php?SelectedID=<?= $order['id'] ?>"><?php echo $order['last_name']; ?> <?php echo " , " . $order['first_name']; ?></a></td>
45
46             <td
class="text-right"><?php echo $order['age']; ?></td>
47             <td
class="text-right"><?php echo $order['home_phone']; ?></td>
48             <td
class="text-right"><?php echo $order['work_phone']; ?></td>
49             <td
class="text-center">
50     <?php
if ($order['image']) {
51         ?>
52                     <img src=
"../images/<?php echo $order['image']; ?>" alt="Smiley face" height="42" width="42">
53                 <?php }
54                 ?>
55             </td>
56             <td
class="text-left"><?php echo $order['gender']; ?></td>
57             <td
class="text-left"><?php echo $order['state']; ?></td>
58             <td
class="text-left"><?php echo $order['history']; ?></td>
59
60
61
62         </tr>
63 <?php } ?>
64
65 </tbody>
66
67 </table>
68
69 <?php }
else{
70     echo
'<div class="alert alert-danger">' . $Translation['No records found']. '</div>';
71 }?>
72 <?php
73 include_once(
"../footer.php"); // include the footer file
74 ?>


Gõ tìm kiếm nhanh...